﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Client.Test
{
    /// <summary>
    /// Interaction logic for FrmTestPrinterPanelZebra_UpdateData.xaml
    /// </summary>
    public partial class FrmTestPrinterPanelZebra_UpdateData : Window
    {
        public FrmTestPrinterPanelZebra_UpdateData()
        {
            InitializeComponent();
            this.DataContext = new FrmTestPrinterPanelZebra_UpdateData_ViewModel(this);
        }
    }

    public class FrmTestPrinterPanelZebra_UpdateData_ViewModel : BaseViewModel
    {
        FrmTestPrinterPanelZebra_UpdateData Owner { get; set; }

        public FrmTestPrinterPanelZebra_UpdateData_ViewModel(FrmTestPrinterPanelZebra_UpdateData frm)
        {
            this.Owner = frm;
            readConfig();
        }

        void readConfig()
        {
            // 模拟从 NativeSettings.config 中读取配置
            this.Owner.ucPrinterPanelZebra.UpdateData("OneNote for Windows 10", "89", "89", "1", "5");
        }
    }
}
